From: Rui Matos Date: Fri, 31 Aug 2012 16:14:48 +0000 (+0200) Subject: status/keyboard: Make IBus display strings consistent with g-c-c X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5884 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4fe604bfe842a84bd727928c1b573fa075a7bb09;p=gnome-shell.git status/keyboard: Make IBus display strings consistent with g-c-c Instead of entries like "Anthy" we want "Japanese (Anthy)". https://bugzilla.gnome.org/show_bug.cgi?id=683124 --- diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 4299af620..3dd7e3f5c 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -241,8 +241,10 @@ const InputSourceIndicator = new Lang.Class({ } else if (type == INPUT_SOURCE_TYPE_IBUS) { let engineDesc = this._ibusManager.getEngineDesc(id); if (engineDesc) { + let language = IBus.get_language_name(engineDesc.get_language()); + info.exists = true; - info.displayName = engineDesc.get_longname(); + info.displayName = language + ' (' + engineDesc.get_longname() + ')'; info.shortName = engineDesc.get_symbol(); } }